import { ApiProperty } from '@nestjs/swagger';

export class Coffee {
  @ApiProperty({ example: 1, description: '咖啡ID' })
  id: number;

  @ApiProperty({ example: '猫屎咖啡', description: '咖啡名称' })
  name: string;

  @ApiProperty({
    example: ['浓郁', '香甜'],
    description: '咖啡风味',
    type: [String],
  })
  flavors: string[];

  @ApiProperty({
    example: '由猫咪精心挑选的咖啡豆制成',
    description: '咖啡描述',
    required: false,
  })
  description?: string;

  @ApiProperty({
    example: '2023-01-01T00:00:00.000Z',
    description: '创建时间',
  })
  createdAt: Date;
}
